package com.caocaog.market.finance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.caocaog.market.finance.entity.MkBillBase;
import com.caocaog.market.finance.entity.MkBillHistory;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import javax.transaction.Transactional;
import java.util.List;

/**
 * @author liguang
 * @version 1.0.0
 * @Project jeecg-boot
 * @Package com.caocaog.market.finance.mapper
 * @ClassName MkBillHistoryMapper.java
 * @createTime 2021年12月03日 19:22:00
 * @Description TODO
 */
@Mapper
public interface MkBillHistoryMapper  extends BaseMapper<MkBillHistory> {
    int insertBillAndHistory(MkBillHistory billHistory);

    //插入时如果有异常，立即删除
    int deleteBillAndHistory(@Param("billBaseId") String billBaseId,@Param("billHistoryId") String billHistoryId);

}
